<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="box">
        <input type="text" name="user" />
    </div>
    <script>
        let userInput = document.getElementsByName("user");
    </script>


    <div id="box"></div>
    <script>
        let box = document.querySelector("#box"); 
    </script>

    <div class="box">box1</div>
    <div class="box">box2</div>
    <div class="box">box3</div>
    <div class="box">box4</div>
    <div class="box">box5</div>
    <script>
        let box1 = document.querySelector(".box");
        let boxes = document.querySelectorAll(".box"); 
    </script>

</body>

</html>